export default {
    template: `
    <!-- 头部搜索框 start -->
    <nav class="nav-box">
        <div class="nav-input">
            <input id="userInput" type="text" @focus="isShowBtn=true" @blur="isShowBtn=false">
        </div>
        <div class="nav-btn" v-show="isShowBtn">
            <span>搜索</span>
        </div>
    </nav>
    <!-- 头部搜索框 end -->
    `,
    data() {
        return {
            isShowBtn: false
        }
    },
}